package test.cards.basic;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;
import test.actions.cardactions.TargetBangDreamAction;
import test.cards.BaseCaptainCard;
import test.monitors.SeaMonitor;


public class TargetBangDream extends BaseCaptainCard {
    public static final String ID = makeID(TargetBangDream.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.BASIC,
            CardTarget.SELF,
            0
    );


    public TargetBangDream() {
        super(ID, info);
        setAttr(0,0,1);
        setAttrUpg(0,0,1);
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if(SeaMonitor.getSeaByCard(this)!=null) {
            addToBot(new TargetBangDreamAction(SeaMonitor.getSeaByCard(this).index));
        }
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new TargetBangDream();
    }
}
